/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.gcliff.dao.glpks;

import java.util.Map;
import javax.sql.DataSource;
import oracle.jdbc.OracleTypes;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.jdbc.core.SqlOutParameter;
import org.springframework.jdbc.object.StoredProcedure;

/**
 *
 * @author krishna
 * Code belongs to GCliff.
 */
public class CheckAppStatusDAO extends StoredProcedure {

    protected static final Log log = LogFactory.getLog(CheckAppStatusDAO.class);

    public CheckAppStatusDAO() {
    }

    public CheckAppStatusDAO(DataSource dataSource) {
        super();
        this.setDataSource(dataSource);
        this.setFunction(false);
        this.setSql("GLPKS.PR_CHECK_APP_STATUS");
        this.declareParameter(new SqlOutParameter("PO_APP_STATUS", OracleTypes.VARCHAR));
        this.declareParameter(new SqlOutParameter("PO_MESSAGE", OracleTypes.VARCHAR));
        this.compile();
    }

    public Map<String, Object> checkAppStatus() {
        return super.execute();
    }
    
}
